function getOrderList (params) {
  return $axios({
    url: '/order/page',
    method: 'get',
    params
  })
}


// 修改页面反查详情接口
function queryUserById (id) {
  return $axios({
    url: `/order/${id}`,
    method: 'get'
  })
}

function addOrder (params) {
  return $axios({
    url: '/order',
    method: 'post',
    data: { ...params }
  })
}

function editOrder (params) {
  return $axios({
    url: '/order',
    method: 'put',
    data: { ...params }
  })
}

// 删除
function deleteById(id){
  return $axios({
    url: '/order',
    method: 'delete',
    params: {id}
  })
}

